### must use go >= 1.21.4
VERSION=$(shell git describe --tags --always)
TARGET_DIR=bin
APP=gcp-api-proxy

# Go parameters
GOCMD=GO111MODULE=on go
GOGEN=$(GOCMD) generate
GOBUILD=$(GOCMD) build
GODOWNLOAD=$(GOCMD) mod download


download:
	$(GODOWNLOAD)

env:
	echo "shell exec => gvm use go1.21.4"

dev:
	go run cmd/main.go

docker-build-local:
	docker build \
	--tag gcp-api-proxy \
	--build-arg GOPRIVATE=gitee.com/quantum-force \
	--build-arg GIT_USER=$(user) \
	--build-arg GIT_TOKEN=$(token) \
	.

docker-build-gcp:
	docker build \
	--tag gcp-api-proxy \
	-f Dockerfile-gcp \
	.
